lib/sysroot-deploy: Refactor kernel layout parsing
authorColin Walters <walters@verbum.org>
Fri, 4 Aug 2017 19:58:41 +0000 (15:58 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 9 Aug 2017 13:46:17 +0000 (13:46 +0000)
commitf1102763dfda1d1acc0352b66cf9f309d28d6b1a
tree99c64dd745a7e6d0e96d9ca8f933fbb3cc326473
parent8b60f63f58639dfebbc608fae853c29a11ce4177
lib/sysroot-deploy: Refactor kernel layout parsing

I'd like to move the new canonical kernel directory to `/usr/lib/modules/$kver`,
as Fedora has done. The `get_kernel_from_tree()` function now abstracts over
parsing the data (src vs destination filenames, as well as checksum) in
preparation for adding the new case.

In preparation for this, let's change the current test suite to use the
*current* directory of `/usr/lib/ostree-boot`, and also add coverage of `/boot`.

Closes: #1053
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c
tests/libtest.sh
tests/test-admin-deploy-syslinux.sh
tests/test-admin-deploy-uboot.sh